package com.axjy.yycg.service.impl;

import com.axjy.yycg.mapper.SysuserMapper;
import com.axjy.yycg.pojo.Sysuser;
import com.axjy.yycg.service.SysuserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class SysuserServiceImpl implements SysuserService {
    @Resource
    private SysuserMapper sysuserMapper;
    @Override
    public Sysuser login(String userid, String pwd) {
        return sysuserMapper.login(userid,pwd);
    }

    @Override

    public Sysuser findUserByRoleId(Integer roleId) {
        return sysuserMapper.findUserByRoleId(roleId);



    }

    @Override
    public List<Sysuser> list() {
        return sysuserMapper.list();
    }
}
